//
//  BasicTableViewCtrl.m
//  howcan
//
//  Created by iMac on 12-4-16.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "BasicTableViewCtrl.h"


@implementation BasicTableViewCtrl

- (void)viewDidLoad {
    [super viewDidLoad];
	locmanager = [[CLLocationManager alloc] init]; 
	[locmanager setDelegate:self]; 
	[locmanager setDesiredAccuracy:kCLLocationAccuracyBest];	
	[locmanager startUpdatingLocation];
}

- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
	
}

- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
	CLLocationCoordinate2D loc = [newLocation coordinate];
	loc_lat = loc.latitude;
	loc_lng	= loc.longitude;	
}

@end
